package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(int roleId);

    Page<Map<String,Object>> findByName(String queryString);

    Permission findById(int id);

    void add(Permission permission);

    void update(Permission permission);

    void deleteById(int id);

    long isAssociated(int id);

    List<Permission> findAll();

    void changeStatus(Map<String, Object> map);
}
